package com.zscg.sequence.ui;

import java.util.ArrayList;
import java.util.HashMap;

import com.zgcs.sequence.tool.ServiceTool;
import com.zscg.sequence.R;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.SimpleAdapter;

public class MessageActivity extends SequenceActivity {
	ListView msgList;
	SimpleAdapter listAdapter;
	ArrayList<HashMap<String, Object>> dataList;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.message);
		
		dataList = new ArrayList<HashMap<String, Object>>();

		for (int i = 0; i < 10; i++) {
			HashMap<String, Object> map = new HashMap<String, Object>();
			dataList.add(map);
		}

		msgList = (ListView) findViewById(R.id.message_list);
		listAdapter = new SimpleAdapter(this, dataList,
				R.layout.message_list_item, new String[] {}, new int[] {});
		msgList.setAdapter(listAdapter);
	}

	@Override
	protected void addselfFilter() {
		intentFilter.addAction(ServiceTool.ORDER_PIS);//消息
	}

	@Override
	protected void disposeSelf(Context context, Intent intent) {
		// TODO Auto-generated method stub

	}

	@Override
	protected void disposeLogin(Intent intent) {
		// TODO Auto-generated method stub

	}

}
